﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.SalesPointModules
{
    public abstract class RegionManager:INormalManager<RegionModel>
    {
        protected RegionManager() { }
        public static RegionManager CreateInstance()
        {
            return new RegionBaseManager();
        }
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();

        protected NormalDataUpdater<RegionModel> updater = new RegionUpdaterRegister().GetRegionUpdater();
        public abstract bool Delete(RegionModel Region, out string message);
        public abstract bool Save(RegionModel Region, out string message,params IAddable<RegionModel>[] addables);
        public abstract bool DeleteById( long[] Region, out string message);
    }
}
